CC	= gcc
ASM     = $(CC) -c
AR	= ar -r
RM	= rm -f
CFLAGS	= -I. -g3 -DUNIX -DLINUX -DIDEA32 -DASM

ZIPOBJS	= zbits.o zdeflate.o zfile_io.o zglobals.o zinflate.o zip.o \
    zipup.o ztrees.o zunzip.o
RSAOBJS	= rsaglue1.o
LIBOBJS	= charset.o crc.o crypto.o genprime.o idea.o keymgmt.o md5.o \
    mdfile.o mpiio.o mpilib.o noise.o passwd.o random.o \
    randpool.o system.o pgp.o _80386.o _zmatch.o
EXTOBJS	= memfile.o docum.o ipriv.o icrypt.o pgputils.o buffunc.o keyfunc.o iprcore.o
EXTOBJS2= check.o libcheck.o

OBJS	= $(RSAOBJS) $(LIBOBJS) $(ZIPOBJS) $(EXTOBJS) $(EXTOBJS2)




all: $(OBJS)
#	$(AR) libipriv.a $(OBJS)
#	$(RM) $(OBJS)


.c.o:
	$(CC) -c $(CFLAGS) $<

.cpp.o:
	$(CC) -c $(CFLAGS) $<

_80386.o: 80386.S
	$(CPP) $(ASMDEF) 80386.S > _80386.s
	$(ASM) -o _80386.o _80386.s
	$(RM) _80386.s

_zmatch.o: zmatch.S
	$(CPP) $(ASMDEF) zmatch.S > _zmatch.s
	$(ASM) -o _zmatch.o _zmatch.s
	$(RM) _zmatch.s

clean:
#	$(RM) libipriv.a
	$(RM) *.o
